{% extends "base.html" %}
{# Copyright The IETF Trust 2015, All Rights Reserved #}
{% load origin %}
{% load django_bootstrap5 %}
{% block title %}Remove {{ sp.document.name }} from session{% endblock %}
{% block content %}
    {% origin %}
    <h1>
        Confirm removing from session
        <br>
        <small class="text-body-secondary">{{ sp.document.name }}</small>
    </h1>
    {% if sp.session.is_material_submission_cutoff %}
        <p class="alert alert-warning my-3">
            The deadline for submission corrections has passed. This may affect published proceedings.
        </p>
    {% endif %}
    <div class="card my-3">
        <div class="card-header">
            Document: {{ sp.document.name }}
            {% if sp.rev %}
                -{{ sp.rev }}
            {% else %}
                (current version)
            {% endif %}
        </div>
        <div class="card-body">
            <b>Title:</b> {{ sp.document.title }}
            <br>
            <b>Session:</b> {{ sp.session }}
        </div>
    </div>
    <form method="post">
        {% csrf_token %}
        <button type="submit"
                class="btn btn-{% if sp.session.is_material_submission_cutoff %}warning{% else %}primary{% endif %}"
                name="remove_session">
            Remove document from session
        </button>
        <a class="btn btn-secondary float-end"
           href="{% url 'ietf.doc.views_doc.all_presentations' name=sp.document.name %}">
            Back
        </a>
    </form>
{% endblock %}